﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Admin.Master"
    CodeBehind="Dashboard.aspx.vb" Inherits="GoodAnotApp.Dashboard1" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server">
        <div>
            <table width="100%">
                <tr>
                    <td height="600px">
                        <telerik:RadGrid ID="RadGrid1" runat="server" 
                            DataSourceID="SqlDataSourceDashboard" GridLines="None" Height="217px" 
                            Skin="Office2007" Width="565px">
                            <mastertableview autogeneratecolumns="False" datakeynames="report_ID" 
                                datasourceid="SqlDataSourceDashboard">
                                <rowindicatorcolumn>
                                    <HeaderStyle Width="20px" />
                                </rowindicatorcolumn>
                                <expandcollapsecolumn>
                                    <HeaderStyle Width="20px" />
                                </expandcollapsecolumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="report_ID" DataType="System.Int32" 
                                        DefaultInsertValue="" HeaderText="ID" ReadOnly="True" 
                                        SortExpression="report_ID" UniqueName="report_ID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="priority" DataType="System.Int32" 
                                        DefaultInsertValue="" HeaderText="Priority" SortExpression="priority" 
                                        UniqueName="priority">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="type" DefaultInsertValue="" 
                                        HeaderText="Type" SortExpression="type" UniqueName="type">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" 
                                        DefaultInsertValue="" Display="False" HeaderText="ID" SortExpression="ID" 
                                        UniqueName="ID">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="comment" DefaultInsertValue="" 
                                        HeaderText="comment" SortExpression="comment" UniqueName="comment">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn Text="resolve" UniqueName="column1" 
                                        CommandName="resolve">
                                    </telerik:GridButtonColumn>
                                </Columns>
                            </mastertableview>
                        </telerik:RadGrid>
                    </td>
                    <td height="600px">
                        <asp:SqlDataSource ID="SqlDataSourceDashboard" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:yijungoodAnotDBConnectionString %>" 
                            SelectCommand="SELECT [report_ID], [priority], [type], [ID], [comment] FROM [dashboard_report] WHERE ([resolved] = @resolved)">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="0" Name="resolved" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
</asp:Content>
